
<template>
  <div>
    <el-button type="text" @click="goDetial">查看</el-button>
    <el-drawer
        title="查看"
        size="820px"
        :destroy-on-close="true"
        :visible.sync="drawer">
      <processForm ref="processForm"></processForm>
    </el-drawer>
  </div>
</template>

<script>
import processForm from "@/views/processHandling/module/processForm";
export default {
  name: "seeBtn",
  props:{
    params:{
      default: ()=>{}
    }
  },
  components:{
    processForm
  },
  methods:{
    goDetial(){
      this.drawer = true
      this.$nextTick(()=>{
        this.$refs.processForm.setData(this.params)
      })
    },
  },
  data(){
    return {
      drawer:false
    }
  },
}
</script>

<style scoped lang="less">
</style>